
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<?php
  if(!empty($_POST)){
	if(!empty($_FILES['head'])) {
	   $myhead=$_FILES['head'];	 
	
	 if($myhead['error']>0){
		echo 'error'; 
		}		
	} else {
	  echo 'no fiels;';	
	}
  }
?>
<body>
 <form method="post" enctype="multipart/form-data">
   <input type="file" name="head">
   <input type="submit">
 </form>
</body>
</html>